namespace ContextMenuType {
  export class Config {
    visible: boolean = false
    coordinate: {
      x: number
      y: number
    } = {
      x: 0,
      y: 0
    }

    public hide() {
      this.visible = false
    }

    public show(event: MouseEvent) {
      this.coordinate.x = event.clientX
      this.coordinate.y = event.clientY
      this.visible = true
    }
  }
}

export default ContextMenuType
